from django.contrib import admin

# Register your models here.

from .models import UserProfile


@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
    list_display = ['id', 'username', 'nick_name', 'mobile', 'email', 'is_superuser', 'is_staff', 'is_active',
                    'create_time']
    list_filter = ['is_superuser', 'is_staff', 'is_active']
    search_fields = ['username', 'nick_name', 'mobile', 'email']
    list_per_page = 10
